package edu.eam.proyectodesarrollojpa.entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
/**
 * The persistent class for the MOTIVOS_REUNION database table.
 * 
 */
@Entity
@Table(name = "ASISTENCIA_REUNION")
public class AsistenciaReunion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize = 1, name = "ASISTENCIA_REUNION_IDASISTENCIA_REUNION_GENERATOR", sequenceName = "SEC_ASISTENCIA_REUNION")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ASISTENCIA_REUNION_IDASISTENCIA_REUNION_GENERATOR")
	@Column(name = "IDASISTENCIA")
	private Long idAsistencia;
	
	// uni-directional many-to-one association to TipoAlternativaInversion
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_REUNION_ASISTENCIA")
	private Reunion reunion;
	
	// uni-directional many-to-one association to TipoAlternativaInversion
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_INTEGRANTE_ASISTENCIA")
	private Integrantes integrante;
	

	public AsistenciaReunion() {
	}


	public Long getIdAsistencia() {
		return idAsistencia;
	}


	public void setIdAsistencia(Long idAsistencia) {
		this.idAsistencia = idAsistencia;
	}


	public Reunion getReunion() {
		return reunion;
	}


	public void setReunion(Reunion reunion) {
		this.reunion = reunion;
	}


	public Integrantes getIntegrante() {
		return integrante;
	}


	public void setIntegrante(Integrantes integrante) {
		this.integrante = integrante;
	}

	
	
}